Patch 7

Added $direction interface.