Implemented the assignment functions.