Safer incrementing of quantities.