Added some debug logs to bar.