Modified algo and update interval
Merge pull request #16 from shashankrao/master

Modified algo and update interval