Reworked sleep/awake/active/inactive