Inner script run on background