Added refreshing and warming up functionality. Minor fixes.