Check main and do what is left