Adding the 'reload' function