Trying to get legend to work.