Declare machine, user, domain at top of function