Adding function to update status

Signed-off-by: Garcia Julien <julieng77@yahoo.fr>