Please try to define your functions before you use them :)