Flanagans visit friends in Frederick