Implemented wait for buttons block generation