Added change for rec->length; removed double include of stdio.h