Made basic functions for the rendering