Added pagination, complete template, metadata validation.