Try out using setTimeout to repeat call to fn