Added more info to debug and changed print frequency