In configureHost delete extra parentRect assignment, revise comments and statement order for clarity.