Added domain APIs, fixed some older ones.