Removed unused grab_endpoints
Removed the ',' in the list of shell command arguments