Wrote in motor function into the case statements in readBeagle function.