Scanbox interface and analysis code