Added option for imperial or metric