Adding function for amivest.