Finish procedure header logic | all logic together