Added two new phases of processing