Log cleanup
Added perturb functionality