Fixed STDIN duplication, input now allowed from STDIN