JC: moved @lf into search controller.