Made changes to allow for cookies to be added to phantom