Started work to make this cross-platform between iOS and OS X.