Refactor step, create sequence with two functions