Make this flexible rather than poitning only for mips