New Main-function