Added LOGGING mechanism. Also added the last swap-experiment.