Moved helper methods into iifdb