Implemented logging feature