Custom "query" method for compatibility with Spira. Also endpoint temporal bug fix.