Added misc.cpp