Modified the script to process both sidebands.