Added GCD method