Change version middleware