Make keygen params optional.