Added logging system.