Backward compatibility up to API 7