Implemented the front end