Added simple API for validator