Few modification in Main, using some CustomiseExceptions