First version of custom algorithm integration