Enhancing ioctl. Work in progress.