Removed update function as it did not work