Improved home command to deactivate and clear