Made getInt function non static.