Dinamically adding number of states