Added instance state transition script.