Added return value to method

Needed to add a return value to the method prospectQuery in order to
use it.