Added a drawText function