Added logging to the system.