Fixing errors with ping events [Closes #3]