Seperate code execution from bot core.