Adds a domesday function that allows using this project as a library.