First fully working version. Fuck yeah.