Updated gmail method.