Converted the reference implementation to be loaded as a plugin too