Refactored client code. Added dynamic assoc objects parsing