Added Connection check in computeModalFrequencies method