Handle multiple signatures

Because the function being called could have one of two signatures this fix
calls the function using a named argument which should be compatible with both.