Adding wake/sleep logic to SS for Mac