Switch and state on same line?