Improves to log scripts