Define self pointer in functions.