Changed the renderElement() implementation into a slightly less dumb version...