Exposing the "was_connected" property and using constants for a few checks.
Ensure the new build has all the changes.