Added a blocking parameter in indexing function.
Called the right spatial indexing function.