Adding register definitions and reset code.