Fixed the '//Lock(Lyr)' lines copied in from OptimizeLayers