This single prototype would pretty much fit into misc.h