Refactor monkey runner