Added --pg and --show-index options