Moved the gear check to the Functions model