Made folder creation to be dynamic.