Updated to use the new http package changes.