Add index to parallel

Closes #3.