Optimize: Add `attempt` utility function