Added ability to read from classes and Ids