Changed Harmonic method to function