Fucked up the logic for adding previous transactions, sorry. Fixed now...