Added primitive logging