Added scan-pigs so it can be called on its own while the IDE is running.