Worked on discretization