Added controller and pseudocode to pf_agent