Add rendering functionality