Added by_id method.