Fixed routines.cpp and routines.hpp