TORONTO (AP) — A U.S. Army soldier who fled to Canada after learning his unit was being deployed to Iraq won a last-minute stay of deportation Monday.

Federal Court Judge Richard Mosley ruled Jeremy Hinzman can stay in Canada while the court decides whether he can appeal his deportation order.

"We're elated," Hinzman said moments after the decision was released. "(But) we're not out of the woods at all. We just have a stay of removal."