Store variables in an object