Add nearest verification

Signed-off-by: Derik Evangelista <kirederik@gmail.com>