Added a check for args to the rmhist function.