Use the right index and catch all exceptions