tool.py: Adds support for selecting