New legislation to stop sexual harassment