Added handling for imperial distances