Large amount of code from SEPA