Add argument logging for loadquery and implement async wrapper method.