Fix parameter passing and work with chromiums wrapper stuff