Adding a limit to the number of processed API calls per process. This is...

... to stop large raw analysis logs to block the computer for hours (Closes #365)