Stopped hardcoding the fd for stdin