Removing duplicate function.