Refactoring; added internal sequence object support