Fixed compilation for functions vs kernels. Added accelerated collection plugin