New code and plots per epochs