Added temporary LogPrintf statments for debugging.