Transaction implementation
Implementation of the transaction functions.