Fixed register lookup, now operational. Deleted queryseq (now embedded)