Implement direction attribute