Cleaned up setting of background.