Added support for retrieving object by ID.