Remove unused advance class.
Handle memory overflow.