Well, this is a grid calculation, I could evaluate it but i think it's better to keep it like this to make it more flexible. I can comment it at least