Fixed variable being the same name as a function.. lol
...And fixed the log call as well