Some more work on getComponent utility