Get add and update working