Added debug logging to synchronous execution loop.