Added functional retryFrom method. Tests are to be written