We should avoid this api.