Make options a hash
Make sure everything is typed correctly

So we don't have to handle that from C code