Added support for custom sequences