Updates to GCD functions.