Added optional target to render functions