Misc functions for HCSMP