Removes duplicate function