Added a function def