Moved some things around. Added RBScriptState.