Simplify the host configure code