Updated drawing code.