Added 'addFunction' function