Adding basic logging
More logging added