Added constructor for setting storage mode on creation