Everything works, except out of memory error