Corrected function referring to . Was throwing error.