Changed switch name from autofocus to firstfocus to avoid confusion with other attributes.