Removed update function (can't find a way to make it work)