Clean processing code