Removed unnecessary figure function