Refactor file receiver logic.
Add receiving speed param to onReceivingFile method.