Adding processing code