Alter optional() to allow passing default values.