Chris Pine has been cast in an upcoming gritty thriller called The Line.

Director David Gordon Green's film will see Pine play a federal agent who finds himself on a downward spiral after he loses his wife and young son, according to The Hollywood Reporter.

He unexpectedly becomes the caretaker of a 10-year-old child, who is orphaned after a shootout with a criminal cartel, and the two are forced to go on the run. Soon, the agent discovers that he has enemies on both sides of the law.

The script for The Line has been written by Sang Kyu Kim, a writer-producer on The Walking Dead.

Pine can currently be seen in Jack Ryan: Shadow Recruit, and will next appear in Horrible Bosses 2 and Into the Woods.