Added render map function