Refactored getting of CS and logging if not found.