Allow passing of inputParams

This allows easier injection of custom params.