Added refresh code to Julies version