The Dublin, Wicklow and Wexford Railway(Later named the Dublin and South Eastern Railway and in 1907 a change in livery) asked Beyer Peacock to build two goods engines in 1921. This was a major turning point for the DSER as they were able to afford the most up to date in steam engine technology with the only limitation being the length as the engine had to fit on the Harcourt Turntable. These engines were the future for the DSER into what became the Golden Age for Britsh Railways. However during the last phase of construction, the Irish Civil War broke out and destroying trains was a tactic used by the Anti-Treaty forces. When the XXXI Class were completed and shipped over to Dublin in 1922, the DSER had the engines transferred to the Great Northern Railway of Ireland's Shed in Adelaide, Belfast where they would be safe from the War, This was for the future of the company who solely depended on their survival. In 1923 the engines were returned to Dublin in secret as the Civil War was still going on however had moved to the South West. Many of the DSER's engines and rolling stock had been destroyed and the company was finachially in trouble and so the engines were put into work discretely on the Harcourt Street-Wexford Night Goods train. Due to the finachial loss of the Civil War the company was forced to become part of the Great Southern Railways in 1925. Includes AJS Script.