Adding base rendering code.