Gavin Williams pitched seven sharp innings, and the Cleveland Guardians beat the Kansas City Royals 4-2 on Monday.

Lane Thomas and Josh Naylor each hit two-run homers for AL Central-leading Cleveland, which won for the fourth time in five games.

Williams (3-7) allowed one run and one hit in an encouraging September performance after he went 1-4 with a 6.56 ERA in five starts last month.

“Filling up the zone,” Williams said. “Talking with (catcher) Bo (Naylor) and having a better plan. Just seeing the way they took different pitches.”

The right-hander walked two while throwing 46 pitches in the first two innings. But he settled down from there, retiring his final 16 batters.

“The first couple of innings he was fighting himself,” Guardians manager Stephen Vogt said. “Made an adjustment. To go seven was much needed, for him, for us, and everything.”

The Guardians began the day with a 3 1/2-game lead over Minnesota and Kansas City in the division.