Few minor changes. In RegUtils changed 0 prepending to 0 appending.