Functions now work, however there is still a bug with passing functions though functions.