Removed unnecessary Graphics functions.