Abstracted out serialisation in bus code