Added graphics code.