Separate variables and functions