Courts can also be allowed by law (Germany, 2001) to order the perpetrator to leave the home so that victims do not have to seek shelter. Countries were urged to repeal discriminatory legislation by 2005 following the review of the Beijing Declaration and Platform for Action in 2000. Egypt, for instance, abolished a law that exempted men from rape charges when marrying their victims. However, the goal of antiviolence legislation is often to keep the families together, regardless of the best interests of women, which perpetuate domestic violence.