Completed motor lib.