Added functions to alpha.cc