Basic rendering code.