Added update method
Added dispose method