Replacing use of .fromstr to .fromint when we don't need to parse strings.