Updated state machine to keep track of more values
	* Last used Toolhead index
	* Last used platform index
	* Last used extra output index
Toolchanges now properly update the state machine.