Add avalon4 support