Fixing minor minor bug of referencing a function instead of calling it.