Adds serialisation and configuration loading