Changes to onoffdiagram