Base Code for the OPF specification