Added two variable function.