Leonel Miranda, Giles Barnes and Brad Davis each scored to lead the Houston Dynamo to a 3-2 win over the Colorado Rapids on Saturday at BBVA Compass Stadium.

The Dynamo (41 points, three games remaining) stay three points behind the Portland Timbers (44 points, four games remaining) for the final playoff spot in the Western Conference after Portland secured a 2-1 road win at Columbus on Saturday.

Houston moved to seventh place in the West, passing Real Salt Lake (38 points, five games remaining) and the San Jose Earthquakes (40 points, four games remaining). The Earthquakes host Real Salt Lake on Sunday.

The Dynamo renew the Texas Derby next Sunday when they travel to face FC Dallas at 4 p.m. at Toyota Stadium. Houston is back at home on Saturday, Oct. 10 to host Liga MX champions Santos Laguna in the BBVA Compass Dynamo Charities Cup.

Houston opened the scoring inside three minutes as Will Bruin began his hard-working night, winning the ball at the center circle before feeding Barnes, who drove to the top of the box before the ball spilled in front of Miranda. The Argentinian used one touch to smash a low drive inside the far post for his second goal of the season.

The Rapids tied the game five minutes later as Vicente Sánchez scored directly from a 30-yard free kick, curling a low shot around the wall and inside the post.

The Dynamo regained the lead in the 24th minute on another workmanlike buildup from Bruin, who collected the ball near midfield and used a long first touch to outrace Sean St Ledger to win the ball back at the sideline. From there, Bruin drove calmly into the box before laying a well-times pass to Barnes for an eight-yard finish.

It was Barnes’ first goal since May 16 against the Portland Timbers.

The Rapids once again fought back with an equalizer. Sanchez, a World Cup veteran with Uruguay, worked a give-and-go with Dillon Powers at the top of the box and drove a low shot that deflected off Raul Rodriguez and into the net, tying the game in the 44th minute.

After Miranda’s early opener to start the game, the Dynamo found their third goal less than two minutes after halftime. Miranda drove a pinpoint cross from the right flank and Bruin’s header bounced off defender Drew Moor’s foot and across the penalty area directly to Brad Davis. The Dynamo captain marked his 300th start in all competitions with Houston with a calm finish from 10 yards for the game-winning goal.

Dynamo goalkeeper Tyler Deric preserved the lead with a pair of vital saves against Sánchez, twice denying the veteran a hat trick.

First, Sánchez curled a 30-yard free kick over the wall, and Deric dove to his right to push wide for a corner kick. The save resembled Deric’s free kick stop against Kaka on March 13.

Then in the 89th minute, Deric used his right leg to block Sánchez’ low shot from eight yards for a pivotal stop, securing the 3-2 win.

Next game: FC Dallas vs. Houston Dynamo – Sunday, Oct. 4, 4 p.m. CT, Toyota Stadium, Frisco, Texas

Next home game: Houston Dynamo vs. Santos Laguna – Saturday, Oct. 10, 7 p.m. CT, BBVA Compass Stadium, Houston, Texas