This is what I mean. Is there already a command that can do this, in both directions?