Added support for indexing to models.:w