Alpha version of sending and reading (uncoment before compiling)