Added a lookup method for handling associated arrays.