Trial of preview code ported