Refactor for readability.

Parsesstrings to ints in loading object.