Add generic support for spacedirections