Added handling for no -i and -o