Added a user interface and loggin system