Cleaning and debuging