Fixed passing fuctions as arguments and then correctly calling them.