Implemented a WeakHashMap to prevent data overriding

Signed-off-by: CorriePie <corriekay.pinkie@outlook.com>