Add parsing part. Fix bugs. WiP.