Renamed main function to avoid conlict