Added code to install flex