A basket rake includes a main frame configured to be coupled to a tractor, a left basket coupled to the main frame via a left extension frame, a right basket coupled to the main frame via a right extension frame, a plurality of hydraulic actuators, a plurality of control lines, and a multi-function valve. Each of the plurality of control lines is hydraulically coupled to one of the plurality of actuators. The multi-function valve is hydraulically coupled to each of the plurality of control lines and is configured to receive hydraulic fluid from the tractor and control flow of hydraulic fluid independently to each of the plurality of hydraulic actuators via the plurality of control lines to extend or retract the extension frames, rotate the left or right baskets, raise or lower the left or right baskets, and operate drive motors of the left and right baskets.