Updating slow code