His last release of 2014, was Angelina Jolie's directorial debut, the war film "Unbroken". In the film, Gleeson portrayed a soldier lost at sea after a plane crash in Pacific Ocean during the Second World War. He lost what he described as a "sizable amount of weight" for the role. Along with his father and brother Brian, Gleeson created and stars in the Immatürity For Charity comedy sketches, which raise money for the St. Francis Hospice in Raheny, Dublin. Gleeson directed and starred in a music video for the Squarehead charity single "2025" in 2014, with all proceeds going to Immatürity For Charity.  2015 saw Gleeson appear in four films, all of which received Oscar nominations. His first release of the year was the science fiction psychological thriller "Ex Machina", which was filmed at a hotel in Valldalen, Norway in the summer of 2013 and released in January 2015. The film stars Gleeson as a programmer who wins a competition to visit the home of his company's CEO (Oscar Isaac) and test the human qualities of the artificially intelligent humanoid robot Ava, who is played by Alicia Vikander. The film was the directorial debut of "Never Let Me Go" and "Dredd" screenwriter Alex Garland and their third collaboration. "Ex Machina" was met with critical acclaim for its performances, screenplay, direction, and visual effects. In the romantic period drama "Brooklyn", he appeared in a supporting role as a romantic interest of Saoirse Ronan's character, a young Irish woman living in Brooklyn in the 1950s. Gleeson was announced to be a part of the "Star Wars" sequel trilogy in April 2014. The first instalment, "", was released in December 2015. Gleeson plays the ruthless General Hux, commander of the First Order's Starkiller Base. Throughout the film, Hux is vying for power with First Order commander Kylo Ren, who is portrayed by Adam Driver. In his last release of the year, Gleeson co-starred in Alejandro G. Iñárritu's western "The Revenant" as fur trader Andrew Henry, with Leonardo DiCaprio portraying fur trapper Hugh Glass. Alongside his brother Brian and his father Brendan, Gleeson starred in a revival of the Enda Walsh play "The Walworth Farce" from January to February 2015. In February 2016, Gleeson narrated the BBC Two nature documentary series "Earth's Greatest Spectacles".