Restructure base_log scripts