Changed to use getInt(Object)