Improve cd_func to resemble cd deluxe