clumsy debugging/error handling added, now runs the basic pump commands consistently without previous issues.