Republican presidential nominee Donald Trump has finally reached the magic number of delegates needed to win the GOP nomination for president.

The Associated Press conducted a delegate count Thursday which put Trump on top. He won by a small number of the party’s unbound delegates, who told AP they would support the candidate at the convention.

A candidate needs 1,237 delegates to win the GOP nomination for president. Trump has reached 1,238. 303 delegates are still at stake in five state primaries June 7, which will easily add to Trump’s total. This will avoid a contested convention in Cleveland in July.

More from LifeZette TV

MORE NEWS: Assassination Attempt On President Trump As Package Of Deadly Poison Is Mailed To Him

Trump beat out 16 other Republican contenders in what was often a dirty primary race. Many Republicans have their concerns about the businessman-turned politician. However, millions of grassroots activists have embraced him as a tell-it-like-it-is candidate.