Work on tx and prepare functions.