Titans, Amato agree to two-year extension