Added getById method.