Adding a more efficient drawing code.