Added normalize
Added control for switching layers