Implement the ability to configure the horizontal direction of the script (right to left or left to right).