Complex sentence: In 1940 he was re-commissioned as a group captain to serve throughout the war in the Directorate of Intelligence as liaison officer with MI5.
Split into simpler sentences: In 1940 he was re-commissioned as a group captain. He served through the war in the Directorate of Intelligence to carry out liaison with MI5.