Latest API fixes and improvements.