Added a simple logging system.