Calling a function now works, sort of