Removing debug functions