The military courts were set up in January 2015 for a two year term after a constitutional amendment following a terror attack on an army-run school in Peshawar in December 2014 that killed over 150 people, mostly students.