@zblz There's quite a few `TODO` in this PR for parameters where I didn't take the time to figure out what they are. If those are easy for you to write, maybe you could issue a PR against this one (or do it directly in master)?