Used dictionaries instead of an array with key-value pairs, can't believe I only though about doing that now...