Restrict API for assertions