Updates to chainclock, adding motor