Support option reads via indexing.

This will support tasks with table-driven logic.