Updating recursive nature of getAllProperty.