Added global variable and changed the yaml directory location to make it more extendible