Addressed issue #127.

See new get_int method.