Added 'add' function.