Made minor changes to how sensing is started