Added code for one iteration of processing