Adding support for getting object by id.