Add mechanism to search for all transactions prior to the id of the one given