Unify all code in 2 files: main.c and rcv.h.