To calculate the risks associated with major accident hazard pipelines in the UK a computer code, MISHAP01 (Model for the estimation of Individual and Societal risk from HAzards of Pipelines), is used. The aim was to rewrite MISHAP01 and PipelineRiskAT within a single program to facilitate the implementation of future improvements to the model.