Adding logic to handle component port configuration and state transitions