- Return setup function and some validations;