Fixed unique bug.
Added query time attribute.