Former Texas Rangers pitcher Scott Feldman is switching leagues after agreeing to a one-year contract with the Chicago Cubs. The deal is worth a guaranteed $6 million.

The 29-year-old right-hander was 39-44 with a 4.81 ERA over eight years with the Rangers, going 6-11 with a 5.09 ERA last season.

Speaking on a teleconference Cubs general manager Jed Hoyer said Feldman would be inserted into the rotation. Chicago’s coming off a 101-loss season and a second to last place finish in the NL Central.

Feldman's best season came in 2009, when he won 17 games. He missed the first half of the 2011 season while recovering from right knee surgery.