Working. Memory management not working. Need fix to avoid eating up RAM