Working version with m2s multicore configuration