Minor changes to the coordInTif function