Adding summary functions.
Remove restriction of X points in [0, 1]