Brought isBackground up to speed