Added if statement as to not activate motion until mouse motion is detected