Organize key constants and set ping value to zero on connection to prevent NPEs