anchor.diff:  
   
   	}
  +	//Checks to make sure that the data's creation date is before the specification
   	if (dateBefore != null && !dateBefore.isEmpty()) {
   		%>contains data recorded before <%= dateBefore%>', <%
   		//dateBefore = "AND a.date_created <= TO_DATE("+dateBefore+",'mm/dd/yyyy')";
  
positive.code: 	   queryScalar = queryScalar + " AND s.date_created >= TO_DATE('"+dateAfter+"','dd/mm/yyyy HH24:MI:SS')";
  
  	   //querySensor = querySensor + " AND sen.date_created >= TO_DATE('"+dateAfter+"','dd/mm/yyyy')";
  
  
  	} 
  	%><br><%	
  	//Currently have redudent search conditions if multiple search conditions.
  	//String queryAudio = "SELECT Distinct a.recording_id, a.sensor_id, a.date_created, a.length, a.description FROM sensors sen, audio_recordings a, subscribed_sensors WHERE a.sensor_id in (select * from subscribed_sensors)" + sensorType + location+ dateBefore+dateAfter+keywords+ ";"; 
  
  	//This is the version that would allow multiple keywords. According to forum, exact string match is fine.
  	/*
  	if (!keywords.isEmpty()) {
  	//According to stackexhange, this will also collapse and trim whitespace.
  
negative.code:  <div id='content'>
  
      <%
  	Boolean debug = Boolean.TRUE;
      	/*search conditions. if nothing, it is null*/
          String keywords = request.getParameter("key");
          String sensorType = request.getParameter("stype");
  