Implemented template preview.