Remove the template function and add the ability to add an instance of a state, making it easy to pass parameters to states on initiation