Added byId method.