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. Afterwards these engines continued to work the South East Line but all the way down to Rosslare Harbour, renumbered at 461 and 462. 461 was stationed at Wexford and 462 was stationed at Grand Canal Street, they worked heavy night goods trains from Rosslare Harbour to Dublin and during the day 462 would work suburban passenger trains in Dublin while 461 worked passenger trains from Rosslare Harbour-Wexford. No.462 was later moved to Broadstone to work goods on the ex-MGWR line. These engines were very popular amongst crew although there was a case when 462 was fitted with an automatic ash ejection system which the crew hated and were known to plug them with sugar beet to help the engine to perform better. Includes AJS Script.