IOS initialization