Removed iOS7 dependency to allow being used with iOS6.1+