Implemented a silent mode
Added the part for logging the events