Receive data from server.

Closes #25.