Added all function definitions necessary for SCC problem processing.