Added bi-directional ping handling now that messages are different types