Added some ioctl, about to remove a lot of print statements