Implemented simple refresh function