Adding debug logs for handling changes