Create smart_conn.c