Added debugging statements
Fixed last_ping comparison