Make shouldProceed C++ function.