Removed 2nd definition of function.