Adding functions: retrieve_sequence() and getSequence().