Added update function.
Merge branch 'test' into dev