Pass modifiable params by ref to lib