Edited ifu_3d_collapse() script to include options for the collapse operation.