More elegant optional param handling.