Added convertToUnit(String) method.