First working version. Pretty much stable.