Optimize method