Sets defaults for hashes