Added sequence generator implementation (fixes issue 16)