Needed to free memory