Prevent "Out of memory" exception #6