Added main() func