Exactly! The trick is to do a sensible guess in the code and then switch mode. In fact, you could also add an enum for the method to use, or auto which decides based on input data.