Change type to string and use one preference per type