Initial regrid function added