Adds fsm and singleton scripts