Handles functions and complex numbers