Connection should come before device