Make .h file creation more reliable.