Removed a redundant function.