Added helper for extracting instances