Changed eraseMem to only accept a Boolean value for the eraseCal parameter.