stepDuration to epochDuration. Note: Code broken