Base functionality for the Loreli toolkit