Bind updated to use 0-based index.