Add annotations and validations.