Updated

Dallas Mavericks owner Mark Cuban will donate $1 million to the Dallas Police Department, which announced it will primarily use those funds to protect the LGBT community.

Cuban's donation comes less than a week after a gunman killed 49 people inside the Pulse nightclub in Orlando, Fla., on Sunday. Hours after the attack in Orlando, a man armed with guns and chemicals thought to be on his way to the Los Angeles Pride festival was arrested in Santa Monica, Calif.

"Once again, Mark has demonstrated his devotion to his city by stepping up in a time of need," Dallas mayor Mike Rawlings said. "In the wake of national tragedies, we often hear empty talk from politicians and other influencers. With this pledge, Mark shows he is a man of action who cares deeply about his fellow Dallasites."

According to a press release, the funds will pay for an estimated 16,000 hours of overtime for the Dallas police to aid the city's counterterrorism efforts, including an increased presence in the Dallas suburb of Oak Lawn, which has a large LGBT community.

"The Dallas Police Department thanks Mark Cuban," Dallas police chief David Brown said. "These funds will be used primarily to protect the LGBT community. We will earmark and track the expenditure of these funds to ensure its effective use in creating a safe environment."