Changed for compatability with API 18 and Android Studio .4.2