Added changes for time log in QueryHandler and result checking for
script results