Made iOS 6 compatible.