Add update function

The current implementation has no update function