Update opt method