Implemented New logging system