Updated to use iOS 6.x interface