Adding direction option.