Added flash on background thread