Fix output statistics and add Clear script
Update parameters