v0.0.6: Accept a function as well as a hash for defaults