Added an update method
Added output messages