Initial version of PrependHeader