Added a basic logging system.