Grid sampling implimented and tested.