Proper serialisation of transaction.