perhaps pass the full wavefrontParameters? You're going to need more parameters afterwards