Added initialization, and directory creation.