Removed check for log table - didn't work that way