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

This is handy when dynamically changing steps.