Added some logging to understand it better