Changed overlay to layer