Inspecting and replacing layer sources