Added pull to refresh function.