Added C7 code