Fixed broken stuff and added view to see result. Still not tested.