Added variable for comm error

Created a test version with Jeremy's changes and a normal version for
the pumps