Adding basic logging