Added ability to get objects from model