Basic checks for get and set bytes.
Moved large int parsing logic into a helper function.