Added 'def' function