Handle function definitions