Adds basic logging