Patched to use the declarations map instead of the now deprecated members map.