Implemented a basic logging system.