Adding indexes to model schema. Fixes #146.