York Regional Police have released the identities of all four people killed in a Markham home on the weekend, who friends say are all part of the same family.

The victims, all from Markham, are:

Firoza Begum, 70.

Momotaz Begum, 50.

Moniruz Zaman, 59.

Malesa Zaman, 21.

In a news release on Wednesday, police said the identities were released following post mortem examinations.

Police said the cause of death of all four has been determined but will not be revealed because the case is currently before the courts.

Menhaz Zaman, 23, has been charged with four counts of first-degree murder in connection to the slayings.

A friend told CBC Toronto that Menhaz is the son of Momotaz and Moniruz, the brother of Malesa and the grandson of Firoza.

York Regional police officers stand outside of a home in Markham, Ont. on Sunday after police found four bodies inside. Police have now identified all four homicide victims. (Alanna Rizza/Canadian Press)

On Sunday shortly before 3 p.m., police were called to a home on Castlemore Avenue.

When officers arrived, they encountered Menhaz at the front door. He was arrested, then police entered the home and found the four bodies. Police have not said why he was arrested before the bodies were discovered.

Zaman is due back in court via video link on August 2.

According to two sources, Zaman appears to have sent online messages about planning to kill his family several months ago.

Menhaz Zaman (bottom left) appeared in a Newmarket courtroom on Monday. He has been charged with four counts of first-degree murder and has been remanded into custody. (Pam Davies/CBC)

A user going by the name Menhaz said in March that he was going to kill his parents and go to jail in private messages on Discord, a communication app used by hundreds of millions of gamers around the world.

The same user appeared to send more messages that included extremely graphic images of dead bodies and bloody weapons just hours before police were called to his home.

A longtime family friend has said that Moniruz and Momotaz came to Canada from Bangladesh in the 1980s seeking a better life.

Toronto's Beck Taxi has confirmed that Moniruz worked as a driver for the company and had been employed since 2011.