.
First working version!
Fixed buffer problem.