Some touches to render function