Moved set_addr & set_userpwd to constructor