Very draft support for memory constraint.