Integrated the options of assembling functions to one variable.