Removed old unused function