anchor.diff:  			output += "<br>[text]<hr style='background:#000000; border:0; height:1px'>"
   	if(target_ckey)
   		target_ckey = sanitizeSQL(target_ckey)
  -		var/datum/DBQuery/query_get_messages = SSdbcore.NewQuery("SELECT type, secret, id, adminckey, text, timestamp, server, lasteditor FROM [format_table_name("messages")] WHERE type <> 'memo' AND targetckey = '[target_ckey]' ORDER BY timestamp DESC")
  +		var/datum/DBQuery/query_get_messages = SSdbcore.NewQuery("SELECT type, secret, id, adminckey, text, timestamp, server, lasteditor, DATEDIFF(NOW(), timestamp) AS `age` FROM [format_table_name("messages")] WHERE type <> 'memo' AND targetckey = '[target_ckey]' AND deleted = 0 ORDER BY timestamp DESC")
   		if(!query_get_messages.warn_execute())
   			return
   		var/messagedata
   		var/watchdata
   		var/notedata
  +		var/skipped = 0
   		while(query_get_messages.NextRow())
   			type = query_get_messages.item[1]
   			if(type == "memo")
  
positive.code: 				search = "^\[^\[:alpha:\]\]"
  			else
  				search = "^[index]"
  		var/datum/DBQuery/query_list_messages = SSdbcore.NewQuery("SELECT DISTINCT targetckey FROM [format_table_name("messages")] WHERE type <> 'memo' AND targetckey REGEXP '[search]' ORDER BY targetckey")
  		if(!query_list_messages.warn_execute())
  			return
  		while(query_list_messages.NextRow())
  
negative.code: 			else
  				output += "|<a href='?_src_=holder;[HrefToken()];showwatchfilter=1'>\[Filter offline clients\]</a></center>"
  		output += ruler
  		var/datum/DBQuery/query_get_type_messages = SSdbcore.NewQuery("SELECT id, targetckey, adminckey, text, timestamp, server, lasteditor FROM [format_table_name("messages")] WHERE type = '[type]' AND deleted = 0")
  		if(!query_get_type_messages.warn_execute())
  			return
  		while(query_get_type_messages.NextRow())
  