Added debug function
BAck to old