Added new cwrcAPI code and timeout for queries that will take care of Issue #20