Implemented a simple version of the update