Add some missing damin code