Removed unused redundant function