Main2 for faster execution