Better state generation.