Added getDirection() into the interface.