Small refactoring

Deleted the codeToRun() nonsense.