Memory consumption problem fixed, Assert() for memory consumption check added