Add main save to static-fundef