Ported MISCELLANEOUS.h to PCB