Some helper functions to make life with GCD even easier.