Tidied up how subtransactions are created