Initial ROP and SOP versions from Disney.

TODO: merge with miles' versions
TODO: add indexed string support