Added prototype for preview