Remove unecessary call to indexOf().
Handle PINGs.
Version 0.0.1.