Added send-all capability
Fixed compile errors
Fixed compile errors