Removed unnecessary drawing code