This is a duplicate definition of the function below.