Even more logging for switchTo() function.