Implemented update functionality