Using int flags for now so that I can recycle dataset retrieve code, will change to char later for efficiency