Add support for relative paths
Add logging.