Removed unnecessary template function.