Toggling bits more cleanly