Logging fully implemented. A few fixes to averaging algorithm, but more tweaking needed for the propagation types. Also need to check that conditions are being assigned properly.