An Amber Alert issued for two young brothers and an elderly man last seen in Newmarket, Ont. has been cancelled after they were found safe in Toronto.

York Regional Police said the boys, ages two and four, were last seen with their 70-year-old grandfather in Newmarket on Wednesday afternoon.

Police said the grandfather dropped his wife off at a plaza across from Southlake Regional Health Centre, near Davis Dr. and Lundy's Lane at around 1:30 p.m. Wednesday. He was supposed to go park the van, but instead drove away with the two boys in the vehicle.

An Amber Alert was then issued for the boys on Thursday at around 3 a.m. ET. No foul play was suspected, but police say they were concerned that the grandfather may have been lost as he is from Pickering, not Newmarket.

At approximately 4:30 a.m., Toronto police located the van driving on Lakeshore Boulevard in Toronto. They stopped the vehicle and discovered the grandfather and the two boys safe inside.

The grandfather and the two boys have been since reunited with their family. The boys’ mother told CP24 that she was relieved they were all found safe. She said her sons were happy because they were with their grandfather the whole time.

York Regional Police Const. Andy Pattenden told CP24 that they were found as a "direct result" of the Amber Alert.

“We had a missing vulnerable person with two very young kids, who were missing for a long time and we were concerned very much for all of their safety so the system works and it worked again today,” he said.

That sentiment was echoed by the Toronto police officers who found the family.

“It was a very good team effort and the Amber Alert certainly did work. It alerted us to what needed to be done in regards to locating these kids,” Const. Richard Brown told CP24.

Const. Joe Cicchirillo, Brown’s partner, said the grandfather was a little bit confused when they found him, but he and the children were otherwise in good spirits. Police said they led them to a nearby McDonald’s so the children could have a snack while they waited for their parents to arrive.