Register more state and sample variables.