Refactoring + stubs for ScottAI