Working Bearer option with tests.
With dist added.