Hopefully fix OutOfMemory exceptions.