Removed unneeded functions in useful.h