Added update and create functionality