Added diagnostic message and made tile update run synchronously in background agent