Code compatible with smaller versions of Android