Adding GCD and LCM functions.