Attempting to fix the mapping function by adding an offset to the incoming coordinates