Adapted zrcfile to fit my needs.