[Functionality Done] Users can specify interval and sort algorithm.