LSPIAgent additions and made it compile!