Added prefer text and iOS8 compatibility