Removed an unused function