Added actual functionality to iOS example