stepnums should be unique.