LocalAlignment fix
QueryResult integrated