Add a way to set run loop mode
Merge pull request #5 from greenbell/custom-run-loop-mode

Add a way to set run loop mode