Removed unnecessary update function