Setting max iter to 10