Arrrrggg, distances are doubles!!!!!!!!!!!!!!!!