Minor refactor of get_current_coords.