Separate transaction-module into own file