Changed mycat to file descriptor