Serialisation

The functions must be serialised.