Implementation of REP 143

The function signature changed and requires a versiona argument. The behavior should stay the say i this case.