Edited if_logical.php and Added new file loop.php