Finished everything except domain name resolution and threading