Added compatibility for version < KitKat