Ignore figure directory, set up helper functions