Added transaction commits, adjusted the buffre-size;