Set up variables to use in function and code.