New sequence fill function