Added debug logs to track down physics bug