You had to add this, so I assumen that the 'recenter to feature' happens before the 'layers' parameter is parsed? Or do you safeguard just in case?