Some memory stuff works, totally tired out and exasperated