Changed getflags methods to static so we don't need an instance to use
them