Is this actually how I'm going to do this? Will this work? in logic.php.