Do not modify build target.
Deal with both automatic and manual connection.