Made referncenumber prefix starting point customizable in registry.