Start implementing new sequences, factorize code