Implemented basic logging