Editted drawing code.