refactored parser so it can set delays between the steps