Added new rendering function