Fixed Auto-Blocking Algorithm.

Fixed Auto-Blocking Algorithm.