Added boolean for debug