Removed unused function