Properly pass context_id and context_type in for attemptlogs etc.