Added cookieFile in constructor