[Fixes #2] Reducing the number of calls to the render operation