Cleaning
Adding LUT updating at the end of processing