- Added ping function
- Fixed retrieve attachments