Fixed resizing issue.  Added motor rotation tracking.