Finish idol.sh function and case modifications.