Removed a redundant function