Updated success function.