iOS Version of Emg3's proof of concept.