Implemented batch job in a debug mode