Added the ability to insert a step at a specific index.