Remove unused function
Refactor to use simpler hashtable-based approach
Sort targets by name when listing