Added reader and writer function. Have't been tested with real syscall yet.