Removed check loop from main