Renamed some functions for clarity
Added basic support for fossil