More API functions, validation.