Clean up unused function