Added support to select from fn.