Create step function and factor out steps into a data structure so that steps can be changed more easily.