Before switching to udp branch
Working on read frame...