Added drawWork() function