Added -o option and -e option.