Addition of ERROR_CHECK addition in each line of procedure