sequence revamped to support a prettier callback