For better type safety we use an enum instead of strings to configure direction (backwards or forwards).