Update and clear modules