Added an update function. Allows forcing updates