Implemented new logging system