Implemented logging function in build_zone_data