Change getFile to receive.
Add receive functionality to connect function.