Cleaned up ID pulling for logs