Some logic changed in main function