Trying out optimized version of Index method.