Last processing steps seudo-code