Debugging

But it still doesn't work!
Does sinusoid. Added handshaking