verifyOrSet API

Needs testing.