Refactored the project and implemented the REST interface.