Add transactions
Repair basic functionality. Logic to models