-extern Value evaluate(const Position& pos, Value margins[]);
-extern void init_eval(int threads);
-extern void quit_eval();
-extern void read_weights(Color sideToMove);
+namespace Eval {
+
+const Value Tempo = Value(20); // Must be visible to search
+
+void init();
+std::string trace(const Position& pos);
+
+template<bool DoTrace = false>
+Value evaluate(const Position& pos);
+}