Add  active_scaffold function.