Implemented parts of frontend