Vituperative anti-Japanese sentiment (especially on the West Coast) soured relations in the early 20th century. President Theodore Roosevelt did not want to anger Japan by passing legislation to bar Japanese immigration to the U.S. as had been done for Chinese immigration. Instead there was an informal "Gentlemen's Agreement of 1907" between the foreign ministers Elihu Root and Japan's Tadasu Hayashi. The Agreement said Japan would stop emigration of Japanese laborers to the U.S. or Hawaii, and there would not be segregation in California. The agreements remained effect until 1924 when Congress forbade all immigration from Japan—a move that angered Japan.