Add main2 for testing purposes