Refactored to PHP for including of files