Adding Jack's function.