Implemented the rest of the operations.