More work on dynamic gates.