LAS VEGAS — Even as the days went by, even as the Pelicans began to bolster their backcourt with free agents, Tim Frazier didn't waver.

The point guard wanted to remain in New Orleans.

On Sunday he made that hope a reality, agreeing to a two-year, $4 million deal to remain with the Pelicans. Hours later, he sat courtside at Cox Pavilion with coach Alvin Gentry, watching New Orleans' team in the NBA summer league.

"I'm ecstatic to get it done," Frazier said. "From the beginning, I wanted to come back and play for coach Gentry. I'm just glad I was able to get it done."

Frazier came to the injury-depleted Pelicans March 16 on a 10-day contract and made the most of his opportunity. In 16 games, he averaged 13.1 points, 7.5 assists and 4.4 rebounds in 29.3 minutes.

As he waited to finalize a deal, Frazier kept a close eye on the Pelicans' moves. He followed as they agreed to contracts with small forward Solomon Hill and guards E'Twaun Moore and Langston Galloway, approving of every move.

Frazier knows Galloway from their time in the NBA Development League. He played against Moore in their Big Ten days when Frazier was a youngster at Penn State and Moore a veteran at Purdue. He has known of Hill since college, when the former Pacer was at Arizona.

The newest Pelicans are "great guys," Frazier said.

"I think we added some great new pieces that's going to come in and work hard and try to get better and do whatever it takes for the team to win," Frazier said. "At the end of the day, that's all you want. "

All Frazier wanted was a chance to play with his old teammates, New Orleans' free-agent additions and rookie guard Buddy Hield, who Frazier said is "going to give me tons of assists, because the dude can shoot."

It didn't always seem like a given.

Galloway and Moore can play either guard position and, as the Pelicans' moves piled up, it wasn't always clear from the outside whether there would be room to bring back Frazier, whom New Orleans couldn't go over the salary cap to sign.

But New Orleans had extended him a qualifying offer at the start of free agency, a move that allowed the Pelicans to match any offer sheet Frazier signed with another team and which made it clear the Pelicans at least had interest in bringing Frazier back.

And Frazier — who has split his offseason between working out in his hometown of Houston and in Portland with former Trail Blazers teammate Damian Lillard — is happy to have found a home on a retooled roster in New Orleans.

"I know it's a business," he said. "They've got to do what's best for the team and the organization. I'm just glad I was part of the fit. We got great quality guys, great character guys coming in. I'm excited just to be able to be a part of it and be able to play with them."

Follow Brett Dawson on Twitter, @bdawsonwrites.