Created variables to use in function