Add support for indexing and local variables.