Add logic for all figures.