Moved Mechanize agent from private method to fix bug