So many many many bug fixes. Now it works...