Added grid scaling capability