Added a few debug logs to figure out why this isn't working.