Optimizes worker runner script, does it in separate thread.