Safeguarding implementation
DataTransfer request and response.
Removed magic numbers, defaults in switch.