Reverting bit of code, testing if that would resolve the issue with the memory.