Simplifying the preprocess function mess
Turning off the grid on prod