Implemented the rest of the work.