Final changes
	+ Added actions on crossing thresholds
	+ Added action logging