Implementaiton of version stack