Initial working iOS version. Android to follow