Fixed code. Now debugging for struct data