Adds main program