Tested base version, unoptimized