Make update_lectures return outside the loop