Implemented receive delegate.
Fixing file path for ios