#6: logic_loader.php, reorganize code, add conditional statements