Simplified the process macro