Added more functions to rendering engine