MESA, Ariz. (AP) — Jason Hammel threw four scoreless innings and Anthony Rizzo reached base three times on Tuesday as the Chicago Cubs beat the Kansas City Royals, 4-3.

Hammel came in with a 10.80 ERA in his previous two outings over five innings, but had good downward action and fastball command against the Royals.

READ MORE: Chicago Weather: Rain Continues Into Monday Afternoon; Wind Advisory, Lakeshore Flood Advisory In Effect

The right-hander allowed two hits and struck out three in his longest outing of the spring after he allowed nine hits and walked three in his previous two appearances.

Royals starter Danny Duffy was nearly as good, other than a tough third inning in which he hit a batter and walked two, including Starlin Castro to force in the first run of the game.

READ MORE: Chicago-Based Movers Ghost Family After Showing Up At New Home Without A Lot Of Their Belongings

Rizzo was hit by a pitch and singled twice, including a RBI shot to right-center off Royals reliever Wade Davis in the fifth.

Omar Infante had two singles in three at-bats for the Royals.

MORE NEWS: Couple Frustrated When Wedding Limo Arrives An Hour Late; Limo Company Says Staffing Shortage Is Causing Problems

(© 2015 by STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.)