Add user-agent setting constructor