Using UltimateLib.Logger instead of direct console for wait4