Added getDefaults func.