Added helper function to Units.