Removed ping code as it doesn't have the correct arguments