Added grid scanner helper class