Refreshing algorithm complete (probably)
Refresh implemented and basically functional