Worked on iOS7 compatability