Removing unused function