Modified the fetch() function in the C++ interface to return a bool instead