Modified dir paths and added log file.