Bug Fixing: Missing Brackets When Calling a Function