Optimize and clarify process_emph