Removing unused function call