Dynamic amount of buttons. Code optimization.