Improved the sequence method.