Changed main func signature