Separated Cust_func into individual libraries.