ILogWindow uses a ref int in two functions, this needs to be refactored, to not use those referenced integers