Add some debug logging to Compound component