Implemented logging #5