Fixed the format ioctl so it works.