Added conditional inclusion of functions.php