add module parameter for mainthread execution limit

I have added it was an mainthread execution limit error in my script.
https://gist.github.com/stadaki/6837214