Code for the iOS version of the Zenby app