Fix the out put value
Allow seting window size and sorting