Moving out of memory exception in one place.