Added directory culling script and log management