Add support for new format of specifying limits to the unformat function