Query Functions working, memory allocation bug still present. Check Coordinates Map better...