Add sub functions as depend