Add get methods to Result. Improve script.